projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa70d35
)
docs: Get rid of gdk_drawable_get_size() usage in shooter example
author
Benjamin Otte
<otte@redhat.com>
Mon, 20 Sep 2010 14:55:33 +0000
(16:55 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 26 Sep 2010 13:11:45 +0000
(15:11 +0200)
docs/tools/shooter.c
patch
|
blob
|
history
diff --git
a/docs/tools/shooter.c
b/docs/tools/shooter.c
index 4b31f034ae615cd5cac8105af16f4c96257b36f0..ec3d551cfac6764de240145c3405de7b9682d737 100644
(file)
--- a/
docs/tools/shooter.c
+++ b/
docs/tools/shooter.c
@@
-140,7
+140,8
@@
take_window_shot (Window child,
window = gdk_window_foreign_new (xid);
- gdk_drawable_get_size (window, &width, &height);
+ width = gdk_window_get_width (window);
+ height = gdk_window_get_height (window);
gdk_window_get_origin (window, &x_orig, &y_orig);
if (x_orig < 0)